/**
 * Project Name:fire-industry-DM-center
 * File Name:DmMapStockPrice.java
 * Package Name:com.firestone.bean.entity.elasticsearch.dm
 * Date:2018年4月17日下午8:02:40
 *
*/

package com.firestone.bean.entity.elasticsearch.dm;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Setting;

import com.firestone.bean.entity.elasticsearch.nested.WeightJson;

/**
 * @Description: TODO(股票当日价格表)
 * @author lvxc
 * @date 2018年4月17日 下午8:02:40
 */

@Document(indexName = "dm_map_stock_price", type = "index", createIndex = false)
@Setting(settingPath = "/setting/setting.json")
public class DmMapStockPrice implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @Id
    private String id;

    /**
     * @Fields SYS_add_time : TODO(添加时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_add_time;

    /**
     * @Fields SYS_check_time : TODO(检验时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_check_time;

    /**
     * @Fields SYS_dm_update_time : TODO(更改时间)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String SYS_dm_update_time;
    
    /**
     * @Fields _update_time : TODO(交易日期)
     */
    @Field(type = FieldType.keyword)
    private String _update_time;
    
    /**
     * @Fields add_time : 
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String add_time;
    
    /**
     * @Fields currency : TODO(货币单位)
     */
    @Field(type = FieldType.keyword)
    private String currency;
    
    /**
     * @Fields del_flag : 
     */
    @Field(type = FieldType.keyword)
    private String del_flag;
    
    /**
     * @Fields market_code : TODO(交易市场代码)
     */
    @Field(type = FieldType.keyword)
    private String market_code;
    
    /**
     * @Fields price : TODO(价格)
     */
    @Field(type = FieldType.keyword)
    private String price;
    
    /**
     * @Fields shares_amount : TODO(总股本)
     */
    @Field(type = FieldType.keyword)
    private String shares_amount;
    
    /**
     * @Fields stock_code : TODO(股票代码)
     */
    @Field(type = FieldType.keyword)
    private String stock_code;
    
    /**
     * @Fields update_time : TODO(数据更新日期)
     */
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private String update_time;
    
    /**
     * @Fields total_value : TODO(总值)
     */
    @Field(type = FieldType.keyword)
    private String total_value;
    
    /**
     * @Fields weight_json : TODO(字段来源)
     */
    @Field(type = FieldType.Nested)
    private List<WeightJson> weight_json;
}

